<?php echo $html->css("screen/staff_list_staff.css");?>
<?php echo $this->element('menu', array("active" => "9.a"));?>
<ul class="breadcrumb">
	<li>
	  <a href="#" class="fist_link "><?php __('Contacts');?> </a>
	</li>
 </ul>
<script type="text/javascript">	  
	$(document).ready(function(){		
		$("#ContactAdminAddForm").validate({
			rules: {
				'data[Contact][name]': {
					required: true,
					minlength: 3
				},
				'data[Contact][email]': {
					required: true,					
                    email : true,
				}
			},
			messages: {			
				'data[Contact][name]': {
					required: "Please enter name",
					minlength: "This name must consist of at least 3 characters",					
				},			
				'data[Contact][email]': {
					required: "Please enter email",				
                    email : "This email address is not valid"
				}
			}
		});	
	});
</script>	 
<div id="content" class="staffs form">	
        <fieldset class="form">
		<?php echo $this->Form->create('Contact');?>			
                 	<?php
		echo $this->Form->input('name', array('class'=>'required'));
		echo $this->Form->input('company_id');
		echo $this->Form->input('phone_number');
		echo $this->Form->input('email', array('class'=>'required email'));
	?>
	<div class="clear">
		<?php echo $form->submit(__('Add', true),array('class'=>'bt bt_save','div'=>false));?>
	</div>
	 <?php echo $this->Form->end();?>
        </fieldset>		
 </div>